home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-05  |  5.9 KB  |  215 lines

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.1
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.17 1995/06/21 16:25:23 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.17  1995/06/21  16:25:23  brianp
  26. # added irix5-dso, linux-elf and unixware targets
  27. # Release 1.2.1
  28. #
  29. # Revision 1.16  1995/05/22  16:53:59  brianp
  30. # Release 1.2
  31. #
  32. # Revision 1.15  1995/05/16  14:12:23  brianp
  33. # added amix target
  34. # added contrib tree to tar file
  35. #
  36. # Revision 1.14  1995/04/20  17:35:52  brianp
  37. # made SCO a separate target
  38. #
  39. # Revision 1.13  1995/04/20  13:32:34  brianp
  40. # added SCO to Linux config
  41. #
  42. # Revision 1.12  1995/04/17  14:50:24  brianp
  43. # 1.1.4 beta release
  44. #
  45. # Revision 1.11  1995/03/31  17:05:29  brianp
  46. # 1.1.3 beta release
  47. #
  48. # Revision 1.10  1995/03/14  14:34:02  brianp
  49. # 1.1.2 beta release
  50. #
  51. # Revision 1.9  1995/03/09  14:51:39  brianp
  52. # added osf1 target per Joseph Canedo
  53. #
  54. # Revision 1.8  1995/03/08  19:50:30  brianp
  55. # added depend files to TAR_FILES
  56. #
  57. # Revision 1.7  1995/03/07  14:38:33  brianp
  58. # changed NAME to Mesa-1.1.1beta
  59. #
  60. # Revision 1.6  1995/03/07  14:31:31  brianp
  61. # new hpux CFLAGS per Jan Springer's suggestion
  62. #
  63. # Revision 1.5  1995/03/04  20:00:57  brianp
  64. # changed tar NAME from Mesa1.1beta to Mesa-1.1beta
  65. #
  66. # Revision 1.4  1995/03/04  19:47:13  brianp
  67. # 1.1 beta revision
  68. #
  69. # Revision 1.3  1995/03/01  21:11:53  brianp
  70. # added GLUT to tar target
  71. #
  72. # Revision 1.2  1995/02/24  16:20:26  brianp
  73. # added netbsd target
  74. #
  75. # Revision 1.1  1995/02/24  16:19:25  brianp
  76. # Initial revision
  77. #
  78.  
  79. DESTDIR = /usr/skunk
  80.  
  81. all: sco
  82.  
  83. install:
  84.     -mkdir -p $(DESTDIR)/lib
  85.     -mkdir -p $(DESTDIR)/include/GL
  86.     -cp lib/*.a $(DESTDIR)/lib
  87.     -copy -mr include/GL $(DESTDIR)/include/GL
  88.     cd widgets ; $(MAKE) $@
  89.     cd samples ; $(MAKE) $@
  90.     cd book ; $(MAKE) $@
  91.     cd demos ; $(MAKE) $@
  92.  
  93. sco sco-gcc:
  94.     -mkdir lib
  95.     cd src ; $(MAKE) $@
  96.     cd src-tk ; $(MAKE) $@
  97.     cd src-aux ; $(MAKE) $@
  98.     cd src-glu ; $(MAKE) $@
  99.     cd demos ; $(MAKE) $@
  100.     cd samples ; $(MAKE) $@
  101.     cd book ; $(MAKE) $@
  102.     cd widgets ; $(MAKE)
  103.  
  104. # To add a new configuration for your system add it to the list below
  105. # then update the Make-config file.
  106.  
  107.  
  108.  
  109. default:
  110.     @echo "Type one of the following:"
  111.     @echo "   make aix            for IBM RS/6000 systems with AIX"
  112.     @echo "   make amix           for Amiga 3000 UX  SVR4 v2.1 systems"
  113.     @echo "   make freebsd        for FreeBSD systems with GCC"
  114.     @echo "   make gcc            for a generic system with GCC"
  115.     @echo "   make hpux           for HP systems with HPUX"
  116.     @echo "   make irix4          for SGI systems with IRIX 4.x"
  117.     @echo "   make irix5          for SGI systems with IRIX 5.x"
  118.     @echo "   make irix5-dso      for SGI systems with IRIX 5.x, make DSO"
  119.     @echo "   make irix6          for SGI systems with IRIX 6.x"
  120.     @echo "   make linux          for Linux systems with GCC"
  121.     @echo "   make linux-elf      for Linux systems, make ELF shared lib"
  122.     @echo "   make mswindows      for MS Windows"
  123.     @echo "   make netbsd         for NetBSD 1.0 systems with GCC"
  124.     @echo "   make osf1           for DEC Alpha systems with OSF/1"
  125.     @echo "   make sco            for SCO ODT & OpenServer systems"
  126.     @echo "   make sco-gcc        for SCO ODT & OpenServer systems with GCC"
  127.     @echo "   make sunos4         for Sun systems with SunOS 4.x"
  128.     @echo "   make sunos4-gcc     for Sun systems with SunOS 4.x and GCC"
  129.     @echo "   make sunos5         for Sun systems with SunOS 5.x"
  130.     @echo "   make sunos5-gcc     for Sun systems with SunOS 5.x and GCC"
  131. #    @echo "   make ultrix         for DEC systems with Ultrix"
  132.     @echo "   make unixware       for PCs running UnixWare"
  133.     @echo "   make vistra         for Stardent Vistra systems"
  134.     @echo "   make clean"
  135.  
  136.  
  137.  
  138. aix amix freebsd gcc hpux irix4 irix5 irix5-dso irix6 linux linux-elf netbsd osf1 sco sco-gcc sunos4 sunos4-gcc sunos5 sunos5-gcc ultrix unixware vistra:
  139.     -mkdir lib
  140.     cd src ; $(MAKE) $@
  141.     cd src-tk ; $(MAKE) $@
  142.     cd src-aux ; $(MAKE) $@
  143.     cd src-glu ; $(MAKE) $@
  144.     cd demos ; $(MAKE) $@
  145.     cd samples ; $(MAKE) $@
  146.     cd book ; $(MAKE) $@
  147.  
  148. mswindows:
  149.     @echo "See windows/README.WIN for installation"
  150.  
  151.  
  152.  
  153. # Remove .o files, emacs backup files, etc.
  154. clean:
  155.     -rm include/*~
  156.     -rm include/GL/*~
  157.     -rm lib/*.a
  158.     -rm src/*.o src/*~
  159.     -rm src-aux/*.o
  160.     -rm src-glu/*.o src-glu/*~
  161.     -rm src-tk/*.o
  162.     -rm book/*.o book/*~
  163.     -rm demos/*.o demos/*~
  164.     -rm samples/*.o samples/*~
  165.  
  166.  
  167. # Remove everthing that can be remade
  168. realclean: clean
  169.     cd book ; $(MAKE) realclean
  170.     cd demos ; $(MAKE) realclean
  171.     cd samples ; $(MAKE) realclean
  172.     -rm lib/*.a
  173.  
  174.  
  175.  
  176. HOME = Mesa
  177. NAME = Mesa-1.2.1
  178.  
  179. TAR_FILES =    \
  180.     $(HOME)/README            \
  181.     $(HOME)/LICENSE            \
  182.     $(HOME)/Makefile        \
  183.     $(HOME)/Make-config        \
  184.     $(HOME)/include/*.h        \
  185.     $(HOME)/include/GL/*.h        \
  186.     $(HOME)/src*/NOTES        \
  187.     $(HOME)/src*/README        \
  188.     $(HOME)/src*/Makefile        \
  189.     $(HOME)/src*/depend        \
  190.     $(HOME)/src*/*.[ch]        \
  191.     $(HOME)/demos/Makefile        \
  192.     $(HOME)/demos/*.c        \
  193.     $(HOME)/demos/isosurf.dat    \
  194.     $(HOME)/book/Makefile        \
  195.     $(HOME)/book/NOTES        \
  196.     $(HOME)/book/README        \
  197.     $(HOME)/book/*.[ch]        \
  198.     $(HOME)/samples/Makefile    \
  199.     $(HOME)/samples/NOTES        \
  200.     $(HOME)/samples/README        \
  201.     $(HOME)/samples/*.rgb        \
  202.     $(HOME)/samples/*.c        \
  203.     $(HOME)/GLUT/README-MESA    \
  204.     $(HOME)/widgets            \
  205.     $(HOME)/contrib            \
  206.     $(HOME)/windows
  207.  
  208. tar:
  209.     cd .. ; \
  210.     tar -cvf $(NAME).tar $(TAR_FILES) ; \
  211.     gzip $(NAME).tar ; \
  212.     mv $(NAME).tar.gz $(HOME)
  213.  
  214.  
  215.